#include<stdbool.h>

#include"recordStructure.h"
#include"userOperations.h"
#include"bookOperations.h"

extern int recordId;
extern Record* record_head;
extern int user_account;
extern User* user_head;
extern Book* book_head;
extern int BookId;

void createRecordList();

Record* getLastRecord();

void addRecord(User* user,Book* book);

void deleteRecord(Record* record);

void initRecord(time_t borrowTime,int bookId,int userAccount, bool isReturn,int recordId,time_t returnTime);

bool isReturn(Record* record);

void showRecordList();

void showNotReturn();

void showReturn();

void readRecordFile();

void writeRecordFile();

void freeRecord();
